
package hk.ces.oxfam.patch.xml;

import hk.ces.oxfam.patch.db.result.SQLResult;
import java.util.List;
import java.util.Map;

/**
 *
 * @author ReutyCheng
 */
public class SQLResultXML implements SQLXML
{
  protected final SQLResult result;

  public SQLResultXML(SQLResult result)
  {
    this.result = result;
  }

  public String getSql()
  {
    return result.getSql();
  }

  public Object[] getParams()
  {
    return result.getParams();
  }

  public Map<String, String> getMetas()
  {
    return result.getMetas();
  }

  public String[] getHeader()
  {
    return this.result.getColumnNames();
  }

  public List<Object[]> getBodyItem()
  {
    return this.result.getRows();
  }
}
